package com.ch.mapdemo.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.ch.mapdemo.entity.User;
import com.ch.mapdemo.service.UserService;


/**
 * 
 * @author ch
 *
 */
@RestController
public class UserController {
	
	@Resource
	UserService userService;

//	@RequestMapping(value="/{id}",method=RequestMethod.GET)
//	public String index(@PathVariable Integer id) {
//		User user = userService.getById(id);
//		
//		return "������"+user.getUserName()+"   ���룺"+user.getPassWord();
//	}
//	
}
